package shuati.chuanzhibei.juesai;

import java.io.*;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

/**
 * @Date : 2023-04-09
 * @Description:
 */
public class zzzzzzz {
    static BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
    static BufferedWriter bw=new BufferedWriter(new OutputStreamWriter(System.out));
    static Scanner scanner = new Scanner(System.in);
    static int m,n;
    public static void main(String[] args) throws IOException {
        String[] split = br.readLine().split("\\s+");
        n=Integer.parseInt(split[0]);
        m=Integer.parseInt(split[0]);
        m= (int) Math.pow(2,m-1);
        List<Integer> strings = null;
        String[] split1 = br.readLine().split("\\s+");
        for (int i = 0; i < n; i++) {
            strings.add(Integer.parseInt(split1[i]));
        }

        Collections.sort(strings);
        int sum=0,s=0;
        while (sum<=m){
         //   sum+=Math.min(strings.get());
        }

    }

}
